package think.in.spring.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import think.in.spring.web.service.SampleService;

@RestController
@RequestMapping("/exec")
public class ExecutionController {

    @Autowired
    private SampleService sampleService;

    @RequestMapping("/demo1")
    public String demo1() {
        sampleService.processData();
        return "demo1";
    }
}
